package com.park.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.dao.OperaotorAttendanceRecordMapper;
import com.park.model.OperaotorAttendanceRecord;
import com.park.service.OperaotorAttendanceRecordService;

@Service
public class OperaotorAttendanceRecordServiceImpl implements OperaotorAttendanceRecordService {

	@Autowired
	private OperaotorAttendanceRecordMapper operaotorAttendanceRecordMapper;
	@Override
	public int insert(OperaotorAttendanceRecord oar) {
		// TODO Auto-generated method stub
		return operaotorAttendanceRecordMapper.insert(oar);
	}

	@Override
	public OperaotorAttendanceRecord select(String account) {
		// TODO Auto-generated method stub
		return operaotorAttendanceRecordMapper.select(account);
	}

	@Override
	public int update(OperaotorAttendanceRecord oar) {
		// TODO Auto-generated method stub
		return operaotorAttendanceRecordMapper.update(oar);
	}

	@Override
	public List<OperaotorAttendanceRecord> select(String operatorName, String account, int parkId,
			int loginStatus, int logoutStatus, String loginStart, String loginEnd, String logoutStart,
			String logoutEnd,int i, int pageSize) {
		// TODO Auto-generated method stub
		return operaotorAttendanceRecordMapper.selectV1(operatorName,account,parkId,loginStatus,logoutStatus,loginStart,loginEnd,logoutStart,logoutEnd,i,pageSize);
	}

	@Override
	public int selectCount(String operatorName, String account, int parkId, int loginStatus, int logoutStatus,
			String loginStart, String loginEnd, String logoutStart, String logoutEnd) {
		// TODO Auto-generated method stub
		return operaotorAttendanceRecordMapper.selectCount(operatorName,account,parkId,loginStatus,logoutStatus,loginStart,loginEnd,logoutStart,logoutEnd);
	}

}
